package com.lezijie.seckill.vo;

import com.lezijie.seckill.validator.IsMobile;
import lombok.Data;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * LoginVO类 接收前端请求参数
 * @author 孙志鹏
 * @createDate 2021-10-23 22:16
 */
@Data
@ToString
public class LoginVO {

    /**
     * 手机号码,User对象ID
     */
    @NotNull
    @IsMobile
    private String mobile;

    /**
     * User对象密码
     */
    @NotNull
    @Length(min = 32)
    private String password;
}
